package com.kgc.scd.bean;

import java.util.ArrayList;
import java.util.List;

public class AddressExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public AddressExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAddrIdIsNull() {
            addCriterion("addr_id is null");
            return (Criteria) this;
        }

        public Criteria andAddrIdIsNotNull() {
            addCriterion("addr_id is not null");
            return (Criteria) this;
        }

        public Criteria andAddrIdEqualTo(String value) {
            addCriterion("addr_id =", value, "addrId");
            return (Criteria) this;
        }

        public Criteria andAddrIdNotEqualTo(String value) {
            addCriterion("addr_id <>", value, "addrId");
            return (Criteria) this;
        }

        public Criteria andAddrIdGreaterThan(String value) {
            addCriterion("addr_id >", value, "addrId");
            return (Criteria) this;
        }

        public Criteria andAddrIdGreaterThanOrEqualTo(String value) {
            addCriterion("addr_id >=", value, "addrId");
            return (Criteria) this;
        }

        public Criteria andAddrIdLessThan(String value) {
            addCriterion("addr_id <", value, "addrId");
            return (Criteria) this;
        }

        public Criteria andAddrIdLessThanOrEqualTo(String value) {
            addCriterion("addr_id <=", value, "addrId");
            return (Criteria) this;
        }

        public Criteria andAddrIdLike(String value) {
            addCriterion("addr_id like", value, "addrId");
            return (Criteria) this;
        }

        public Criteria andAddrIdNotLike(String value) {
            addCriterion("addr_id not like", value, "addrId");
            return (Criteria) this;
        }

        public Criteria andAddrIdIn(List<String> values) {
            addCriterion("addr_id in", values, "addrId");
            return (Criteria) this;
        }

        public Criteria andAddrIdNotIn(List<String> values) {
            addCriterion("addr_id not in", values, "addrId");
            return (Criteria) this;
        }

        public Criteria andAddrIdBetween(String value1, String value2) {
            addCriterion("addr_id between", value1, value2, "addrId");
            return (Criteria) this;
        }

        public Criteria andAddrIdNotBetween(String value1, String value2) {
            addCriterion("addr_id not between", value1, value2, "addrId");
            return (Criteria) this;
        }

        public Criteria andAddrUserIdIsNull() {
            addCriterion("addr_user_id is null");
            return (Criteria) this;
        }

        public Criteria andAddrUserIdIsNotNull() {
            addCriterion("addr_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andAddrUserIdEqualTo(String value) {
            addCriterion("addr_user_id =", value, "addrUserId");
            return (Criteria) this;
        }

        public Criteria andAddrUserIdNotEqualTo(String value) {
            addCriterion("addr_user_id <>", value, "addrUserId");
            return (Criteria) this;
        }

        public Criteria andAddrUserIdGreaterThan(String value) {
            addCriterion("addr_user_id >", value, "addrUserId");
            return (Criteria) this;
        }

        public Criteria andAddrUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("addr_user_id >=", value, "addrUserId");
            return (Criteria) this;
        }

        public Criteria andAddrUserIdLessThan(String value) {
            addCriterion("addr_user_id <", value, "addrUserId");
            return (Criteria) this;
        }

        public Criteria andAddrUserIdLessThanOrEqualTo(String value) {
            addCriterion("addr_user_id <=", value, "addrUserId");
            return (Criteria) this;
        }

        public Criteria andAddrUserIdLike(String value) {
            addCriterion("addr_user_id like", value, "addrUserId");
            return (Criteria) this;
        }

        public Criteria andAddrUserIdNotLike(String value) {
            addCriterion("addr_user_id not like", value, "addrUserId");
            return (Criteria) this;
        }

        public Criteria andAddrUserIdIn(List<String> values) {
            addCriterion("addr_user_id in", values, "addrUserId");
            return (Criteria) this;
        }

        public Criteria andAddrUserIdNotIn(List<String> values) {
            addCriterion("addr_user_id not in", values, "addrUserId");
            return (Criteria) this;
        }

        public Criteria andAddrUserIdBetween(String value1, String value2) {
            addCriterion("addr_user_id between", value1, value2, "addrUserId");
            return (Criteria) this;
        }

        public Criteria andAddrUserIdNotBetween(String value1, String value2) {
            addCriterion("addr_user_id not between", value1, value2, "addrUserId");
            return (Criteria) this;
        }

        public Criteria andAddrUserNameIsNull() {
            addCriterion("addr_user_name is null");
            return (Criteria) this;
        }

        public Criteria andAddrUserNameIsNotNull() {
            addCriterion("addr_user_name is not null");
            return (Criteria) this;
        }

        public Criteria andAddrUserNameEqualTo(String value) {
            addCriterion("addr_user_name =", value, "addrUserName");
            return (Criteria) this;
        }

        public Criteria andAddrUserNameNotEqualTo(String value) {
            addCriterion("addr_user_name <>", value, "addrUserName");
            return (Criteria) this;
        }

        public Criteria andAddrUserNameGreaterThan(String value) {
            addCriterion("addr_user_name >", value, "addrUserName");
            return (Criteria) this;
        }

        public Criteria andAddrUserNameGreaterThanOrEqualTo(String value) {
            addCriterion("addr_user_name >=", value, "addrUserName");
            return (Criteria) this;
        }

        public Criteria andAddrUserNameLessThan(String value) {
            addCriterion("addr_user_name <", value, "addrUserName");
            return (Criteria) this;
        }

        public Criteria andAddrUserNameLessThanOrEqualTo(String value) {
            addCriterion("addr_user_name <=", value, "addrUserName");
            return (Criteria) this;
        }

        public Criteria andAddrUserNameLike(String value) {
            addCriterion("addr_user_name like", value, "addrUserName");
            return (Criteria) this;
        }

        public Criteria andAddrUserNameNotLike(String value) {
            addCriterion("addr_user_name not like", value, "addrUserName");
            return (Criteria) this;
        }

        public Criteria andAddrUserNameIn(List<String> values) {
            addCriterion("addr_user_name in", values, "addrUserName");
            return (Criteria) this;
        }

        public Criteria andAddrUserNameNotIn(List<String> values) {
            addCriterion("addr_user_name not in", values, "addrUserName");
            return (Criteria) this;
        }

        public Criteria andAddrUserNameBetween(String value1, String value2) {
            addCriterion("addr_user_name between", value1, value2, "addrUserName");
            return (Criteria) this;
        }

        public Criteria andAddrUserNameNotBetween(String value1, String value2) {
            addCriterion("addr_user_name not between", value1, value2, "addrUserName");
            return (Criteria) this;
        }

        public Criteria andAddrDistrictIsNull() {
            addCriterion("addr_district is null");
            return (Criteria) this;
        }

        public Criteria andAddrDistrictIsNotNull() {
            addCriterion("addr_district is not null");
            return (Criteria) this;
        }

        public Criteria andAddrDistrictEqualTo(String value) {
            addCriterion("addr_district =", value, "addrDistrict");
            return (Criteria) this;
        }

        public Criteria andAddrDistrictNotEqualTo(String value) {
            addCriterion("addr_district <>", value, "addrDistrict");
            return (Criteria) this;
        }

        public Criteria andAddrDistrictGreaterThan(String value) {
            addCriterion("addr_district >", value, "addrDistrict");
            return (Criteria) this;
        }

        public Criteria andAddrDistrictGreaterThanOrEqualTo(String value) {
            addCriterion("addr_district >=", value, "addrDistrict");
            return (Criteria) this;
        }

        public Criteria andAddrDistrictLessThan(String value) {
            addCriterion("addr_district <", value, "addrDistrict");
            return (Criteria) this;
        }

        public Criteria andAddrDistrictLessThanOrEqualTo(String value) {
            addCriterion("addr_district <=", value, "addrDistrict");
            return (Criteria) this;
        }

        public Criteria andAddrDistrictLike(String value) {
            addCriterion("addr_district like", value, "addrDistrict");
            return (Criteria) this;
        }

        public Criteria andAddrDistrictNotLike(String value) {
            addCriterion("addr_district not like", value, "addrDistrict");
            return (Criteria) this;
        }

        public Criteria andAddrDistrictIn(List<String> values) {
            addCriterion("addr_district in", values, "addrDistrict");
            return (Criteria) this;
        }

        public Criteria andAddrDistrictNotIn(List<String> values) {
            addCriterion("addr_district not in", values, "addrDistrict");
            return (Criteria) this;
        }

        public Criteria andAddrDistrictBetween(String value1, String value2) {
            addCriterion("addr_district between", value1, value2, "addrDistrict");
            return (Criteria) this;
        }

        public Criteria andAddrDistrictNotBetween(String value1, String value2) {
            addCriterion("addr_district not between", value1, value2, "addrDistrict");
            return (Criteria) this;
        }

        public Criteria andAddrDetailIsNull() {
            addCriterion("addr_detail is null");
            return (Criteria) this;
        }

        public Criteria andAddrDetailIsNotNull() {
            addCriterion("addr_detail is not null");
            return (Criteria) this;
        }

        public Criteria andAddrDetailEqualTo(String value) {
            addCriterion("addr_detail =", value, "addrDetail");
            return (Criteria) this;
        }

        public Criteria andAddrDetailNotEqualTo(String value) {
            addCriterion("addr_detail <>", value, "addrDetail");
            return (Criteria) this;
        }

        public Criteria andAddrDetailGreaterThan(String value) {
            addCriterion("addr_detail >", value, "addrDetail");
            return (Criteria) this;
        }

        public Criteria andAddrDetailGreaterThanOrEqualTo(String value) {
            addCriterion("addr_detail >=", value, "addrDetail");
            return (Criteria) this;
        }

        public Criteria andAddrDetailLessThan(String value) {
            addCriterion("addr_detail <", value, "addrDetail");
            return (Criteria) this;
        }

        public Criteria andAddrDetailLessThanOrEqualTo(String value) {
            addCriterion("addr_detail <=", value, "addrDetail");
            return (Criteria) this;
        }

        public Criteria andAddrDetailLike(String value) {
            addCriterion("addr_detail like", value, "addrDetail");
            return (Criteria) this;
        }

        public Criteria andAddrDetailNotLike(String value) {
            addCriterion("addr_detail not like", value, "addrDetail");
            return (Criteria) this;
        }

        public Criteria andAddrDetailIn(List<String> values) {
            addCriterion("addr_detail in", values, "addrDetail");
            return (Criteria) this;
        }

        public Criteria andAddrDetailNotIn(List<String> values) {
            addCriterion("addr_detail not in", values, "addrDetail");
            return (Criteria) this;
        }

        public Criteria andAddrDetailBetween(String value1, String value2) {
            addCriterion("addr_detail between", value1, value2, "addrDetail");
            return (Criteria) this;
        }

        public Criteria andAddrDetailNotBetween(String value1, String value2) {
            addCriterion("addr_detail not between", value1, value2, "addrDetail");
            return (Criteria) this;
        }

        public Criteria andAddrPhoneIsNull() {
            addCriterion("addr_phone is null");
            return (Criteria) this;
        }

        public Criteria andAddrPhoneIsNotNull() {
            addCriterion("addr_phone is not null");
            return (Criteria) this;
        }

        public Criteria andAddrPhoneEqualTo(String value) {
            addCriterion("addr_phone =", value, "addrPhone");
            return (Criteria) this;
        }

        public Criteria andAddrPhoneNotEqualTo(String value) {
            addCriterion("addr_phone <>", value, "addrPhone");
            return (Criteria) this;
        }

        public Criteria andAddrPhoneGreaterThan(String value) {
            addCriterion("addr_phone >", value, "addrPhone");
            return (Criteria) this;
        }

        public Criteria andAddrPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("addr_phone >=", value, "addrPhone");
            return (Criteria) this;
        }

        public Criteria andAddrPhoneLessThan(String value) {
            addCriterion("addr_phone <", value, "addrPhone");
            return (Criteria) this;
        }

        public Criteria andAddrPhoneLessThanOrEqualTo(String value) {
            addCriterion("addr_phone <=", value, "addrPhone");
            return (Criteria) this;
        }

        public Criteria andAddrPhoneLike(String value) {
            addCriterion("addr_phone like", value, "addrPhone");
            return (Criteria) this;
        }

        public Criteria andAddrPhoneNotLike(String value) {
            addCriterion("addr_phone not like", value, "addrPhone");
            return (Criteria) this;
        }

        public Criteria andAddrPhoneIn(List<String> values) {
            addCriterion("addr_phone in", values, "addrPhone");
            return (Criteria) this;
        }

        public Criteria andAddrPhoneNotIn(List<String> values) {
            addCriterion("addr_phone not in", values, "addrPhone");
            return (Criteria) this;
        }

        public Criteria andAddrPhoneBetween(String value1, String value2) {
            addCriterion("addr_phone between", value1, value2, "addrPhone");
            return (Criteria) this;
        }

        public Criteria andAddrPhoneNotBetween(String value1, String value2) {
            addCriterion("addr_phone not between", value1, value2, "addrPhone");
            return (Criteria) this;
        }

        public Criteria andAddrTelIsNull() {
            addCriterion("addr_tel is null");
            return (Criteria) this;
        }

        public Criteria andAddrTelIsNotNull() {
            addCriterion("addr_tel is not null");
            return (Criteria) this;
        }

        public Criteria andAddrTelEqualTo(String value) {
            addCriterion("addr_tel =", value, "addrTel");
            return (Criteria) this;
        }

        public Criteria andAddrTelNotEqualTo(String value) {
            addCriterion("addr_tel <>", value, "addrTel");
            return (Criteria) this;
        }

        public Criteria andAddrTelGreaterThan(String value) {
            addCriterion("addr_tel >", value, "addrTel");
            return (Criteria) this;
        }

        public Criteria andAddrTelGreaterThanOrEqualTo(String value) {
            addCriterion("addr_tel >=", value, "addrTel");
            return (Criteria) this;
        }

        public Criteria andAddrTelLessThan(String value) {
            addCriterion("addr_tel <", value, "addrTel");
            return (Criteria) this;
        }

        public Criteria andAddrTelLessThanOrEqualTo(String value) {
            addCriterion("addr_tel <=", value, "addrTel");
            return (Criteria) this;
        }

        public Criteria andAddrTelLike(String value) {
            addCriterion("addr_tel like", value, "addrTel");
            return (Criteria) this;
        }

        public Criteria andAddrTelNotLike(String value) {
            addCriterion("addr_tel not like", value, "addrTel");
            return (Criteria) this;
        }

        public Criteria andAddrTelIn(List<String> values) {
            addCriterion("addr_tel in", values, "addrTel");
            return (Criteria) this;
        }

        public Criteria andAddrTelNotIn(List<String> values) {
            addCriterion("addr_tel not in", values, "addrTel");
            return (Criteria) this;
        }

        public Criteria andAddrTelBetween(String value1, String value2) {
            addCriterion("addr_tel between", value1, value2, "addrTel");
            return (Criteria) this;
        }

        public Criteria andAddrTelNotBetween(String value1, String value2) {
            addCriterion("addr_tel not between", value1, value2, "addrTel");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}